<template>
  <div id="app">
    <router-view />
    <van-loading type="spinner" color="#1989fa" v-if="isShow" class="loading" />
  </div>
</template>
<script>
export default {
  name: "App",
  computed: {
    isShow() {
      return this.$store.state.Loading.isLoading;
    },
  },
};
</script>
<style>
#app{
  position: relative;
}
.loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
@import url("./assets/icon/iconfont.css");
#app {
  /* 不能设置高度，有内容自动填充起来即可 */
  /* height: 22rem; */
  width: 100%;
}
/* html,body{
    height: 100%;
} */
html {
  font-size: 26.67vw;
}
body {
  font-size: 0.16rem;
  display: flex;
  flex-direction: column;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
ol,
dl,
dt,
dd,
p,
span,
div,
object,
iframe,
pre,
a,
abbr,
cite,
input,
button,
select,
option,
table,
tr,
td {
  padding: 0;
  margin: 0;
}
ul,
ol,
li {
  list-style: none;
}
a,
u {
  text-decoration: none;
  color: black;
}
b,
strong {
  font-weight: 400;
}
i,
em {
  font-style: normal;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 0.16rem;
  font-weight: normal;
}
.clear-fix::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  clear: both;
}
input {
  outline: none;
  border: none;
}
img,
video {
  list-style: none;
}
</style>
